/**
 * 小程序配置文件
 */

// 后台主机域名
// var host = "localhost:8081"
var host = "120.77.247.244:8080"

var config = {

	host,

	revokeInformation: `http://${host}/information/deleteInformation`,

	deleteIndent: `http://${host}/indent/delete`,

	getUserByStudentId: `http://${host}/user/getByStudentId`,

  getAllInfoemation: `http://${host}/information/getAllAvailable`,

  addInformation: `http://${host}/information/add`,

  addIndent: `http://${host}/indent/add`,
  
  addComplaint: `http://${host}/complaint/add`,

	getCommentByIndentId: `http://${host}/comment/getMyIndent`,

	getAll: `http://${host}/indent/getAll`,

	changeIndent: `http://${host}/indent/updateStatus`,

	getIndentsByInformation: `http://${host}/indent/getByInformation`,
	
	getCollections: `http://${host}/user/getCollections`,

  getUser: `http://${host}/user/getOne`,

	addUser: `http://${host}/user/add`,

  login: `http://${host}/user/login`,
  
  getComplaints: `http://${host}/complaint/myComplaint`,

  getComments: `http://${host}/comment/getAllComments`,
	
	addComment: `http://${host}/comment/add`,

  getGoodNum: `http://${host}/comment/numOfGood`,

  getBadNum: `http://${host}/comment/numOfBad`,

  getRate: `http://${host}/user/getRate`,

  cancelComplaint: `http://${host}/complaint/delete`,

  editUserInfo: `http://${host}/user/modify`,

	addTag: `http://${host}/tag/add`,

  addChildTag: `http://${host}/tag/addChild`,

	getAllParentTag:`http://${host}/tag/getAllParentTag`,

  getChildTag: `http://${host}/tag/getChildTag`,

  deleteTag: `http://${host}/tag/delete`,

  getAllComplaints: `http://${host}/complaint/getAll`,

  modifyComplaint: `http://${host}/complaint/modifyStatus`,
  
  addCollect: `http://${host}/user/addCollect`,

  removeCollect: `http://${host}/user/removeCollect`,

  uploadAvatar: `http://${host}/user/upload`,

  uploadImg: `http://${host}/information/upload`
};

module.exports = config
